﻿<Canvas x:Class="CoTime.View.UserControls.UCCanvas"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             mc:Ignorable="d"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:my="clr-namespace:CoTime.View.UserControls" Height="30"
             Margin="0,2,0,0">
    <Image Source="../../Images/pencil.png"
           Stretch="None"
           Width="30"
           Height="30"
           Visibility="Hidden"></Image>
    <my:UCTextBox Width="365"></my:UCTextBox>
    <Grid Canvas.Right="0">
        <Grid.RowDefinitions>
            <RowDefinition Height="30"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="30"></ColumnDefinition>
            <ColumnDefinition Width="30"></ColumnDefinition>
            <ColumnDefinition Width="30"></ColumnDefinition>
            <ColumnDefinition Width="30"></ColumnDefinition>
            <ColumnDefinition Width="30"></ColumnDefinition>
            <ColumnDefinition Width="30"></ColumnDefinition>
        </Grid.ColumnDefinitions>
    </Grid>
    <Canvas.ContextMenu>
        <ContextMenu ContextMenuOpening="ContextMenu_ContextMenuOpening">
            <MenuItem Header="放弃此任务" Name="BtnCancelTask" Click="BtnCancelTask_Click" />
            <MenuItem Header="删除">
                <MenuItem Header="预估番茄" Name="BtnDelEsti" Click="BtnDelEsti_Click" />
                <MenuItem Header="番茄时间" Name="BtnDelPomo" Click="BtnDelPomo_Click" />
                <MenuItem Header="内部中断" Name="BtnDelInte" Click="BtnDelInte_Click" />
                <MenuItem Header="外部中断" Name="BtnDelExte" Click="BtnDelExte_Click" />
                <MenuItem Header="任务完成" Name="BtnDelDone" Click="BtnDelDone_Click" />
            </MenuItem>
            <Separator />
            <MenuItem Header="支持我们">
                <MenuItem Header="新浪微博" Name="BtnSinaWeibo" Click="BtnSinaWeibo_Click" />
                <MenuItem Header="更能改进意见" Name="BtnImproveAdvice" Click="BtnImproveAdvice_Click" />
                <MenuItem Header="加入我们" Name="BtnDenote" Click="BtnDenote_Click" />
            </MenuItem>
        </ContextMenu>
    </Canvas.ContextMenu>
</Canvas>
